#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

int main()
{
  close(0);
  int fd1 = open("log1.txt" , O_RDWR | O_CREAT , 0666);
  int fd2 = open("log2.txt" , O_RDWR | O_CREAT , 0666);
  int fd3 = open("log3.txt" , O_RDWR | O_CREAT , 0666);
  int fd4 = open("log4.txt" , O_RDWR | O_CREAT , 0666);
  int fd5 = open("log5.txt" , O_RDWR | O_CREAT , 0666);
  int fd6 = open("log6.txt" , O_RDWR | O_CREAT , 0666);
  printf("%d\n",fd1);
  printf("%d\n",fd2);
  printf("%d\n",fd3);
  printf("%d\n",fd4);
  printf("%d\n",fd5);
  printf("%d\n",fd6);
  return 0;
}
